package com.xiaoxx.model.vo.chat;

import com.xiaoxx.common.base.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author :HX
 * @date : 2023/11/29
 */
@Data
@ApiModel(value = "ChatModelDto对象", description = "AI模型dto")
public class ChatModelVo  extends BaseVo {

    @ApiModelProperty(value = "0-聊天 1-图片")
    @NotNull(message = "模型类型不能为空")
    private Integer contentType = 0;

    @ApiModelProperty(value = "apikey id")
    private String apikeyId;

    @ApiModelProperty(value = "key")
    private String apiKey;

    @ApiModelProperty(value = "模型")
    @NotBlank(message = "模型名称不能为空")
    private String model;

    @ApiModelProperty(value = "模型描述")
    @NotBlank(message = "模型描述不能为空")
    private String modelDesc;

    @ApiModelProperty(value = "限流规则")
    private String limitRule;

    @ApiModelProperty(value = "1-启用缓存 2-关闭缓存")
    @NotNull(message = "缓存状态不能为空")
    private Integer isCache;

    @ApiModelProperty(value = "1、使用中 2未使用")
    private Integer status;

    @ApiModelProperty(value = "限流数")
    @NotNull(message = "限流数不能为空")
    private Integer limitNum;
}
